package com.tedu.springdemo.day04;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * 配置单例跟多例
 */
@Scope("prototype")
@Component
//<bean id="person" class="Person" scope="prototype">
public class Person {
    public Person(){
        System.out.println("Person构造器..."+this);
    }
}
